set Style
Better solution from TextView.setTextAppearance(context,resId) for EditText
Author
mertceyhan
See also
This function sets many attributes to EditText. These styles are as follows; android.R.attr.layout_width android.R.attr.layout_height android.R.attr.focusable android.R.attr.focusableInTouchMode android.R.attr.enabled android.R.attr.hint android.R.attr.imeOptions android.R.attr.maxLength android.R.attr.textSize android.R.attr.inputType android.R.attr.textColorHint android.R.attr.textColor android.R.attr.textAllCaps android.R.attr.padding android.R.attr.paddingTop android.R.attr.paddingBottom android.R.attr.paddingRight android.R.attr.paddingLeft android.R.attr.textColorHighlight android.R.attr.text android.R.attr.textStyle android.R.attr.fontFamily
Parameters
Context parameter used for get typed array with context.obtainStyledAttributes
ResId parameter used for get the style attributes from resource